home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
COMMADIO
/
EASUPGEN.LZH
/
XTEUPG2.XTS
< prev
Wrap
Text File
|
1989-09-17
|
5KB
|
156 lines
/*
Ease-Up V1.7 (GEnie Version) INCLUDE file #2 for CROSSTALK Mk.4 v1.1
This file, XTEUPC2.XTS, and its companion file XTEUPC1.XTS are used
by the scripts generated by Ease-Up V1.7 and are required for the
proper operation of those scripts.
The files are 'include' files and are included into and compiled with
the Ease-Up generated scripts. Their location in the generated script
file is important, so if for some reason you decide to make any changes
to the generated code keep this in mind.
The XTALK4 Reference Manual states in its notes on the INCLUDE statement
that the XTPATH path is not searched for include files. I've found that
this is not the case, and source files on the XTPATH are included. In
any case, these files must be available to XTALK4 in order for the
generated scripts to compile. Keeping the generated scripts and the
include files together in the same subdirectory will take care of it.
You should refer to your XTALKK4 manuals for the details of how include
files are handled.
*/
label DONE
if auto_confirm = YES then {
if stat_wn > 0 then {
stat_wn = 20
gosub SHOW_STATUS
}
gosub CONFIRM
}
if stat_wn > 0 then {
stat_wn = 25
gosub SHOW_STATUS
}
alarm 4 : alarm 4 : ; wake up, we're done
shut #wn : ; free the message window
shut #errwn : ; free the error window
END
label CONFIRM
wait 30 seconds for 'put the file in the Library (Y/N)?'
W5R '5'
return
label C_MODE
; goto the forum
gosub SHOW_STATUS
W5R 'M ' + forum_page + ';8' : ; forum_page initialized by
; generated code
; set library
gosub SHOW_STATUS
watch for
case 'Item #, or <RETURN> for more?' : W5R ' '
case space '?' : W5R libnum : ...
goto CMODE_UPLOAD
endwatch
; choose upload
label CMODE_UPLOAD
gosub SHOW_STATUS
wait 30 seconds for '?'
W5R '5'
clear #wn,line
print #wn,at 2,0,'Sending description & file...';
return
label M_MODE
; goto the forum
gosub SHOW_STATUS
W5R 'M ' + forum_page + ';8' : ; forum_page initialized by
; generated code
; set library
gosub SHOW_STATUS
watch for
case 'Item #, or <RETURN> for more?' : W5R ' '
case '<H>elp?' : W5R libnum :...
goto MNU_UPLOAD
endwatch
; choose upload
label MNU_UPLOAD
gosub SHOW_STATUS
wait 30 seconds for '<H>elp?'
W5R '5'
clear #wn,line
print #wn,at 2,0,'Sending description & file...';
return
label ERROR_HDLR
if track(1) then {
alarm 7
print #errwn,' Invalid Response...'
print #errwn,' Check your data entry offline.'
show #errwn
wait 4 seconds for key 27
hide #errwn
jump DONE
}
label SHOW_STATUS
case stat_wn of
0 : return
1 : print #wn,at 2,0,'Moving to forum...';
2 : clear #wn,line : ...
print #wn,at 2,0,'Setting LIB number...';
3 : clear #wn,line : ...
print #wn,at 2,0,'Choose Upload...';
4 : clear #wn,line : ...
print #wn,at 2,0,'Send Upload File Name...';
5 : clear #wn,line : ...
print #wn,at 2,0,'Send Short Description...';
6 : clear #wn,line : ...
print #wn,at 2,0,'Send Long Description...';
7 : clear #wn,line : ...
print #wn,at 2,0,'Send Keywords...';
8 : clear #wn,line : ...
print #wn,at 2,0,'Choose Protocol...';
9 : clear #wn,line : ...
print #wn,at 2,0,'Upload Local File...';
20 : clear #wn,line : ...
print #wn,at 2,0,'Confirmation with host...';
25 : clear #wn,line : ...
print #wn,at 2,0,'End of script...';
endcase
stat_wn = stat_wn + 1
return